<template>
	<view>
		<Lyn4ever-gaodeRoutePlanning 
		:longitude="longitude" 
		:latitude="latitude" 
		width="100vw" 
		heith="100vh"
		:Config="Config" 
		:startPoi="startPoi" 
		:wayPoi="wayPoi" 
		:endPoi="endPoi"/>
	</view>
</template>

<script>
	// import Amap from '@/js/lyn4ever-gaode.js';
	export default {
		data() {
			return {
				longitude: 108.921672,
				latitude: 34.250646,
				Config: {
					showMarks:true,
					lineColor: "#0606ff", //路径颜色
					lineWidth: 4, //路径宽度
					startImage: "",
					wayImage: "",
					endImage: ""
				},
				startPoi: "108.921672,34.250646",
				wayPoi: "108.936799,34.245842;108.973306,34.244767;109.013335,34.249303",
				endPoi: "109.033673,34.252884"
			}
		},
		onLoad() {
			// 	let that = this;
			// 	var startPoi = "108.921672,34.250646";
			// 	var wayPoi =
			// 		"108.936799,34.245842;108.973306,34.244767;109.013335,34.249303";
			// 	var endPoi = "109.033673,34.252884";

			// 	Amap.line(startPoi, endPoi, wayPoi,function(res){
			// 		that.polyline.push(res)
			// 	});

			// 	Amap.markers(startPoi,endPoi,wayPoi,function(res){
			// 		that.markers.push.apply(that.markers,res)
			// 	})
		},
		methods: {

		}
	}
</script>

<style>

</style>